import { _decorator } from 'cc';
import { ecs } from 'db://app-game/libs/ecs/ECS';
import { CCComp } from 'db://app-game/module/common/CCComp';

const { ccclass, property } = _decorator;

/** 怪兽显示组件 */
@ccclass('MonsterViewComp') // 定义为 Cocos Creator 组件
@ecs.register('MonsterView', false) // 定义为 ECS 组件
export class MonsterViewComp extends CCComp {
  reset(ent: ecs.Entity): void {
    this.node.destroy();
  }
}
